package cemp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName stock_ths_gn_current_info
 */
@TableName(value ="stock_ths_gn_current_info")
public class StockThsGnCurrentInfo implements Serializable {
    private Integer id;

    private String gnCode;

    private String gnName;

    private BigDecimal priceBegin;

    private BigDecimal priceYesterday;

    private BigDecimal priceEnd;

    private BigDecimal priceMax;

    private BigDecimal priceMin;

    private BigDecimal priceIncreaseRate;

    private String rank;

    private String upNum;

    private String downNum;

    private BigDecimal fundInput;

    private BigDecimal amount;

    private BigDecimal trunover;

    private Date staDatetime;

    private BigDecimal priceCurrent;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGnCode() {
        return gnCode;
    }

    public void setGnCode(String gnCode) {
        this.gnCode = gnCode;
    }

    public String getGnName() {
        return gnName;
    }

    public void setGnName(String gnName) {
        this.gnName = gnName;
    }

    public BigDecimal getPriceBegin() {
        return priceBegin;
    }

    public void setPriceBegin(BigDecimal priceBegin) {
        this.priceBegin = priceBegin;
    }

    public BigDecimal getPriceYesterday() {
        return priceYesterday;
    }

    public void setPriceYesterday(BigDecimal priceYesterday) {
        this.priceYesterday = priceYesterday;
    }

    public BigDecimal getPriceEnd() {
        return priceEnd;
    }

    public void setPriceEnd(BigDecimal priceEnd) {
        this.priceEnd = priceEnd;
    }

    public BigDecimal getPriceMax() {
        return priceMax;
    }

    public void setPriceMax(BigDecimal priceMax) {
        this.priceMax = priceMax;
    }

    public BigDecimal getPriceMin() {
        return priceMin;
    }

    public void setPriceMin(BigDecimal priceMin) {
        this.priceMin = priceMin;
    }

    public BigDecimal getPriceIncreaseRate() {
        return priceIncreaseRate;
    }

    public void setPriceIncreaseRate(BigDecimal priceIncreaseRate) {
        this.priceIncreaseRate = priceIncreaseRate;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public String getUpNum() {
        return upNum;
    }

    public void setUpNum(String upNum) {
        this.upNum = upNum;
    }

    public String getDownNum() {
        return downNum;
    }

    public void setDownNum(String downNum) {
        this.downNum = downNum;
    }

    public BigDecimal getFundInput() {
        return fundInput;
    }

    public void setFundInput(BigDecimal fundInput) {
        this.fundInput = fundInput;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getTrunover() {
        return trunover;
    }

    public void setTrunover(BigDecimal trunover) {
        this.trunover = trunover;
    }

    public Date getStaDatetime() {
        return staDatetime;
    }

    public void setStaDatetime(Date staDatetime) {
        this.staDatetime = staDatetime;
    }

    public BigDecimal getPriceCurrent() {
        return priceCurrent;
    }

    public void setPriceCurrent(BigDecimal priceCurrent) {
        this.priceCurrent = priceCurrent;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StockThsGnCurrentInfo other = (StockThsGnCurrentInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGnCode() == null ? other.getGnCode() == null : this.getGnCode().equals(other.getGnCode()))
            && (this.getGnName() == null ? other.getGnName() == null : this.getGnName().equals(other.getGnName()))
            && (this.getPriceBegin() == null ? other.getPriceBegin() == null : this.getPriceBegin().equals(other.getPriceBegin()))
            && (this.getPriceYesterday() == null ? other.getPriceYesterday() == null : this.getPriceYesterday().equals(other.getPriceYesterday()))
            && (this.getPriceEnd() == null ? other.getPriceEnd() == null : this.getPriceEnd().equals(other.getPriceEnd()))
            && (this.getPriceMax() == null ? other.getPriceMax() == null : this.getPriceMax().equals(other.getPriceMax()))
            && (this.getPriceMin() == null ? other.getPriceMin() == null : this.getPriceMin().equals(other.getPriceMin()))
            && (this.getPriceIncreaseRate() == null ? other.getPriceIncreaseRate() == null : this.getPriceIncreaseRate().equals(other.getPriceIncreaseRate()))
            && (this.getRank() == null ? other.getRank() == null : this.getRank().equals(other.getRank()))
            && (this.getUpNum() == null ? other.getUpNum() == null : this.getUpNum().equals(other.getUpNum()))
            && (this.getDownNum() == null ? other.getDownNum() == null : this.getDownNum().equals(other.getDownNum()))
            && (this.getFundInput() == null ? other.getFundInput() == null : this.getFundInput().equals(other.getFundInput()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getTrunover() == null ? other.getTrunover() == null : this.getTrunover().equals(other.getTrunover()))
            && (this.getStaDatetime() == null ? other.getStaDatetime() == null : this.getStaDatetime().equals(other.getStaDatetime()))
            && (this.getPriceCurrent() == null ? other.getPriceCurrent() == null : this.getPriceCurrent().equals(other.getPriceCurrent()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGnCode() == null) ? 0 : getGnCode().hashCode());
        result = prime * result + ((getGnName() == null) ? 0 : getGnName().hashCode());
        result = prime * result + ((getPriceBegin() == null) ? 0 : getPriceBegin().hashCode());
        result = prime * result + ((getPriceYesterday() == null) ? 0 : getPriceYesterday().hashCode());
        result = prime * result + ((getPriceEnd() == null) ? 0 : getPriceEnd().hashCode());
        result = prime * result + ((getPriceMax() == null) ? 0 : getPriceMax().hashCode());
        result = prime * result + ((getPriceMin() == null) ? 0 : getPriceMin().hashCode());
        result = prime * result + ((getPriceIncreaseRate() == null) ? 0 : getPriceIncreaseRate().hashCode());
        result = prime * result + ((getRank() == null) ? 0 : getRank().hashCode());
        result = prime * result + ((getUpNum() == null) ? 0 : getUpNum().hashCode());
        result = prime * result + ((getDownNum() == null) ? 0 : getDownNum().hashCode());
        result = prime * result + ((getFundInput() == null) ? 0 : getFundInput().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getTrunover() == null) ? 0 : getTrunover().hashCode());
        result = prime * result + ((getStaDatetime() == null) ? 0 : getStaDatetime().hashCode());
        result = prime * result + ((getPriceCurrent() == null) ? 0 : getPriceCurrent().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gnCode=").append(gnCode);
        sb.append(", gnName=").append(gnName);
        sb.append(", priceBegin=").append(priceBegin);
        sb.append(", priceYesterday=").append(priceYesterday);
        sb.append(", priceEnd=").append(priceEnd);
        sb.append(", priceMax=").append(priceMax);
        sb.append(", priceMin=").append(priceMin);
        sb.append(", priceIncreaseRate=").append(priceIncreaseRate);
        sb.append(", rank=").append(rank);
        sb.append(", upNum=").append(upNum);
        sb.append(", downNum=").append(downNum);
        sb.append(", fundInput=").append(fundInput);
        sb.append(", amount=").append(amount);
        sb.append(", trunover=").append(trunover);
        sb.append(", staDatetime=").append(staDatetime);
        sb.append(", priceCurrent=").append(priceCurrent);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}